import Mock from 'mockjs'

let patientList = Mock.mock({
	code: 1,
	msg: 'success',
	'data|5': [{
		name: '@cname',
		idNumber: '@id',
		sex: '@boolean',
		'age|1-100': 20
		// introduction:
	}]
})



Mock.mock('/mock/user/user/findAll', 'get', patientList)

let deletepatient = (id) => {
	let deletep = []
	patientList.data.forEach(item => {
		if (item.idNumber != id) {
			deletep.push(item)
		}

	})
	return deletep
}
Mock.mock('/mock/user/patient', 'get', {
	code:1,
	msg:'success'
})

